package router

import (
	"context"
)

type RouterGroup struct {
	RouterGroupList map[string]func(ctx context.Context) error
}

var RouterGroupApp = new(RouterGroup)

func (r *RouterGroup) InitRouterGroup() {
	var routerGroupList = make(map[string]func(ctx context.Context) error)

	// 消息
	routerGroupList = InitMessageRouterGroup(routerGroupList)

	// 用户
	routerGroupList = InitUserRouterGroup(routerGroupList)

	r.RouterGroupList = routerGroupList
}
